SimulateMemoryRemainingSpace

Simulates memory with an amount of remaining free space.

Note: This statement simulates physical memory at the operating system level and may cause runtime environments, such as .NET Framework, to behave unexpectedly.

Syntax

SimulateMemoryRemainingSpace(MegabytesRemaining)

Arguments

Argument Description
MegabytesRemaining Number of megabytes allocated in physical memory by the application. Use floating point values for fractions or SimulationOff to turn off the simulation.

Example

Window("WysiCorp CRM").Menu("MenuBar").Select("File/Open")

Window("Open File").Combobox("FileName").SetText("LargeFile.DAT")

SimulateMemoryRemainingSpace(1)

Window("Open File").Button("Open").Click()

Window("Error: out of memory").CheckExists()

SimulateMemoryRemainingSpace(SimulationOff)

Window("Error: out of memory").Button("OK").Click()

Window("Open File").Button("Open").Click()